package com.elysium.feign;

import com.elysium.constants.Constants;
import com.elysium.fallback.AppLoginFeignClientFallbackFactory;
import com.elysium.pojo.param.RegisterSaveLoginParam;
import com.elysium.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = Constants.Remote.SERVICE_UAA, path = "/app/login", contextId = "AppLoginFeignClient", fallbackFactory = AppLoginFeignClientFallbackFactory.class)
public interface AppLoginFeignClient {

    @PostMapping
    R<Void> save(@RequestBody RegisterSaveLoginParam registerSaveLoginParam);

}
